package com.mask.io;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;

/**
 * ClassName Test
 * Create by hx
 * Date 2021/9/16 2:40 下午
 */

public class Test {
    public static void main(String[] args) throws IOException {
        String separator = File.separator;
        File file = new File(separator + "/Users/hx/Desktop/" + "学业积分.md");

        try(var out = new PrintWriter(file, StandardCharsets.UTF_8)) {
            out.println(567);
            out.println("hello");
            out.println(false);
            out.flush();
        }
    }
}
